/**
 * Created with IntelliJ IDEA.
 * User: Aleksandr Sereda
 * Date: 28.05.13
 * Time: 19:05
 */
package com.google.code.bankagregator.adapter.bank.sberrus;

import com.google.code.bankagregator.adapter.Adapter;
import com.google.code.bankagregator.adapter.bank.sberrus.reader.credit.CreditSberVyhodnyi;
import com.google.code.bankagregator.adapter.bank.sberrus.reader.deposit.DepositSberNakopitelni;
import com.google.code.bankagregator.adapter.bank.sberrus.reader.deposit.DepositSberSertificat;
import com.google.code.bankagregator.adapter.bank.sberrus.reader.deposit.DepositSberStable;
import com.google.code.bankagregator.adapter.bank.sberrus.reader.deposit.DepositSberTradition;
import com.google.code.bankagregator.common.AbstractAdapter;
import com.google.code.bankagregator.common.reader.CreditReader;
import com.google.code.bankagregator.common.reader.DepositReader;

import java.util.ArrayList;
import java.util.List;

/**
 * Adapter for getting credits and deposits from Sberbank Rosij Bank
 */
public class AdapterSberrus extends AbstractAdapter implements Adapter {

    /**
     * Getting list of data sources
     *
     * @return List
     */
    public List<CreditReader> getCreditReadersList() {
        List<CreditReader> creditDataSource = new ArrayList<>();
        creditDataSource.add(new CreditSberVyhodnyi("http://sberbank.ua/chastnym-klientam/kredity/kredit-na-neotlozhnye-raskhody"));
        return creditDataSource;
    }

    /**
     * Getting list of data sources
     *
     * @return List
     */
    public List<DepositReader> getDepositReadersList() {
        List<DepositReader> depositDataSource = new ArrayList<>();
        depositDataSource.add(new DepositSberSertificat("http://sberbank.ua/chastnym-klientam/depozity/depozitnie-sertifikati"));
        depositDataSource.add(new DepositSberTradition("http://sberbank.ua/chastnym-klientam/depozity/traditsionnyjj"));
        depositDataSource.add(new DepositSberStable("http://sberbank.ua/chastnym-klientam/depozity/stabilnyjj"));
        depositDataSource.add(new DepositSberNakopitelni("http://sberbank.ua/chastnym-klientam/depozity/nakopitelnyjj"));
        return depositDataSource;
    }


}
